package com.bkbw.live.battle.map;

import com.bkbw.live.battle.util.AStarUtil;

/**
 * 地图管理，根据客户端请求的id来获得地图信息MapInfo并进行缓存
 * @author zhouyou
 *
 */
public class MapManager {
	private MapManager() {}
	private static MapManager instance;
	public static MapManager getInstance(){
		if(instance==null){
			instance = new MapManager();
		}
		return instance;
	}
	
	/**
	 * 根据id获得地图信息 
	 */
	public MapAStarInfo getMapInfoById(String mapId){
		MapAStarInfo info = AStarUtil.loadMapAStarInfoFromJsonFile("map/map.json");
		return info;
	}
}
